<?php
namespace app\index\model;

use think\Model;
use think\Db;

class SponsorModel extends Model{
  // 定义表名
//  protected $table = 'gjc_classify';

  //获取分类
  function getSort(){
    return $result = Db::table('gjc_classify') -> where('fid',1) -> select();

  }

  //添加众筹项目信息
  function addBasicData($data){
    return $result = Db::table('gjc_goods') -> insertGetId($data);
  }
  //添加详情图
  function addDetailPic($detail_pic_ur_date){
    return $result = Db::table('gjc_childImg') -> insert($detail_pic_ur_date);
  }
  //添加档位信息
  function addLevelDate($level_date_arr){
    return $result = Db::table('gjc_goodsitem') -> insert($level_date_arr);
  }
}